package com.example.demo.mapper;

import com.example.demo.model.dto.comment.OpCommentListDto;
import com.example.demo.model.entity.PComment;
import com.example.demo.model.entity.SComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2024-05-14
 * Time:9:04
 */
@Mapper
public interface CommentMapper {
    // 发布
    Integer pubPComment(Integer userId, String content, Integer artId, Long ctime);
    Integer pubSComment(SComment s);
    // 查询列表1
    List<PComment> listPComment(Integer start, Integer limit, Integer id);
    List<SComment> listSComment(Integer start, Integer limit, Integer id);
    // 删除
    Integer delPComment(Integer id);
    Integer delSComment(Integer id);
    Integer delSCommentList(Integer id);
    // 查询单条
    PComment PComment(Integer id);
    SComment SComment(Integer id);

}
